package com.adtech.farmProducts.blue.adapter;

import android.bluetooth.BluetoothDevice;

/**
 * Created by wuyicheng on 2017/9/14.
 */

public class Event {

    private String name;
    private BluetoothDevice device;

    public Event(String name, BluetoothDevice device) {
        this.name = name;
        this.device = device;
    }

    @Override
    public String toString() {
        return "Event{" +
                "name='" + name + '\'' +
                ", device=" + device +
                '}';
    }

    public BluetoothDevice getDevice() {
        return device;
    }

    public void setDevice(BluetoothDevice device) {
        this.device = device;
    }

    public Event(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
